#include<bits/stdc++.h>
#define y1 Y1
#define fi first
#define endl "\n"
#define se second
#define PI acos(-1)
#define int long long
#define pb(x) push_back(x)
#define PII pair<int, int>
#define Yes cout << "Yes\n";
#define No cout << "No\n";
#define YES cout << "YES\n";
#define NO cout << "NO\n";
#define _for(i, a, b) for(int i = a; i <= b; ++i)
#define IOS ios::sync_with_stdio(false),cin.tie(0),cout.tie(0)
using namespace std;

const int N = 1e6 + 10;

int a[N];
int n, m;
string s;

bool check(double x) {
	for(int i = 1; i <= n; ++ i ) {
		if((int)(x * i) > a[i]) {
			return false;
		}
	}	
	return true;
}

signed main() {
	IOS;
	cin >> n;
	_for(i, 1, n) {
		cin >> a[i];
	}
	
	double l = 0, r = 10000000000;
	
	while(r - l >= 0.00001) {
		double mid = (l + r) / 2.0;
		if(check(mid)) {
			l = mid;
		} else {
			r = mid;
		}
		//cout << "l = " << l << " r = " << r << endl;
	}
	printf("%.10lf\n", l);
	return 0;
}

